package shuffe;

import java.util.ArrayList;
import java.util.List;

public class Test {

    public static void func (String str1, String str2){
        List<String> str = new ArrayList<>();
        for (int i = 0; i < str1.length(); i++) {
            int count = 0;
            for (int j = 0; j < str2.length(); j++) {
                if (str1.charAt(i) != str2.charAt(j)){
                    count++;
                }
            }
            if (count == str2.length()){
                str.add(str1.charAt(i)+"");
            }
        }
        System.out.println(str);
    }

    public static void main(String[] args) {
        func("welcome to bit","come");
    }


    public static void main1(String[] args) {
        Cards card = new Cards();
        List<Card> cardList = card.buycard();

        card.shuffle(cardList);
        System.out.println(cardList);
        List<List<Card>> hands = card.drawCard(cardList);
        System.out.println(hands.get(0));
        System.out.println(hands.get(1));
        System.out.println(hands.get(2));
    }
}
